package com.cq.hd.member.controller;

import com.cq.hd.common.response.Result;
import com.cq.hd.common.response.ResultGenerator;
import com.cq.hd.member.api.TbAutoWithdrawalApi;
import com.cq.hd.member.service.TbAutoWithdrawalRecordService;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author much
 * @since 2024/04/13 13:44
 */
@RestController
public class TbAutoWithdrawalRecordController implements TbAutoWithdrawalApi {

    @Resource
    private TbAutoWithdrawalRecordService autoWithdrawalRecordService;

    @Override
    public Result<Boolean> scanWaitWithdrawalRecords() {
        autoWithdrawalRecordService.scanAutoWithdrawalAndApply();
        return ResultGenerator.success(true);
    }

}
